package com.cqd.rp_goods.service.impl;

import com.cqd.rp_goods.dto.ResultEntity;
import com.cqd.rp_goods.dto.RpDto;
import com.cqd.rp_goods.entity.DbRp;
import com.cqd.rp_goods.mapper.DbRpMapper;
import com.cqd.rp_goods.service.IDbRpService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mht
 * @since 2020-03-16
 */
@Service
public class DbRpServiceImpl extends ServiceImpl<DbRpMapper, DbRp> implements IDbRpService {

    @Override
    public List<DbRp> selectRpList(RpDto rpDto) {
        return this.baseMapper.selectRpList(rpDto);
    }

    @Override
    public List<DbRp> selectGoodsList(RpDto rpDto) {
        return this.baseMapper.selectGoodsList(rpDto);
    }

    @Override
    public List<DbRp> selectById(Integer id) {
        return this.baseMapper.selectById(id);
    }

    @Override
    public void addGoods(int id) {
        this.baseMapper.addGoods(id);
    }

    @Override
    public void del(Integer id) {
        this.baseMapper.del(id);
    }
}
